package com.xl98.mapper;

import com.xl98.entity.Groups;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ls
 * @since 2020-05-15
 */
@Repository
public interface GroupsMapper extends BaseMapper<Groups> {
    List<Groups> selectAll();
    int insertOne(Groups groups);
    int updateOne(Groups groups);
    int deleteOneById(String id);
    List<Groups> selectByKeyword(String keyword);
    Groups selectOneById(String id);
    List<Groups> selectByAdminId(String adminId);
    List<Groups> selectByName(String name);
    List<Groups> selectByAdminIdName(String adminId,String name);
}
